/*
 * Copyright (c) 2023, 2023,yzc.cn All rights reserved.
 *
 */
package cn.yzc.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * <p>Project: SpringBootPro - UserController</p>
 * <p>Powered by yzc On 2023-11-09 21:15:58</p>
 * <p>描述：<p>
 *
 * @author yzc [yzc0415@126.com]
 * @version 1.0
 * @since 17
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @GetMapping("/query")
    public Map queryUser(){
        Map map = new HashMap<>();
        map.put("name","小明");
        map.put("age",15);
        return map;
    }

    @GetMapping("/register")
    public Map userRegister(){
        Map map = new HashMap<>();
        map.put("name","小美");
        map.put("age",17);
        return map;
    }

    @GetMapping("/login")
    public Map userLogin(){
        Map map = new HashMap<>();
        map.put("name","小光");
        map.put("age",19);
        return map;
    }
}
